//
//  YYDisplayView.h
//  DrawDemo
//
//  Created by 姚英 on 16/6/8.
//  Copyright © 2016年 Passion. All rights reserved.
//

#import <UIKit/UIKit.h>
@class YYNumberLabel;


@interface YYDisplayView : UIView

@property (weak, nonatomic) IBOutlet YYNumberLabel *numberLabel;
@property (weak, nonatomic) IBOutlet UILabel *levelLabel;

+ (instancetype)displayViewWithFrame:(CGRect)frame;

/**
 *  数字动画
 *
 *  @param value     新值,结束值
 *  @param oldValue  旧值,起始值
 *  @param duration  动画持续时间
 */
- (void)setNumber:(NSInteger)value oldNumber:(NSInteger)oldValue duration:(CFTimeInterval)duration;
@end
